package com.bdk.middle.goods.api.client;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.goods.api.domain.BrandDO;
import com.bdk.middle.goods.api.query.BrandQueryDO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

public interface BrandClientApi {

    /**
     * 添加品牌
     * @param domain 品牌DO
     * @return ResultDO
     */
    @RequestMapping(value="/brand_cliet_api/add.html", method = RequestMethod.POST)
    public ResultDO add(BrandDO domain);

    /**
     * 修改品牌信息
     * @param domain 品牌DO
     * @return ResultDO
     */
    @RequestMapping(value="/brand_cliet_api/edit.html", method = RequestMethod.POST)
    public ResultDO edit(BrandDO domain);

    /**
     * 获取品牌详情
     * @param id 品牌ID
     * @return ResultDO
     */
    @RequestMapping(value="/brand_cliet_api/get.html", method = RequestMethod.POST)
    public ResultDO get(String id);

    /**
     * 删除品牌
     * @param id 品牌ID
     * @param modifier 修改人品牌名
     * @return ResultDO
     */
    @RequestMapping(value="/brand_cliet_api/remove.html", method = RequestMethod.POST)
    public ResultDO remove(String id, String modifier);

    /**
     * 查找品牌列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    @RequestMapping(value="/brand_cliet_api/find.html", method = RequestMethod.POST)
    public ResultDO find(BrandQueryDO domain);
}
